package com.olinsports.system.olinsportssystem.controller;

import com.olinsports.system.olinsportssystem.manager.SavingDetailManager;
import com.olinsports.system.olinsportssystem.manager.SiteTypeManager;
import com.olinsports.system.olinsportssystem.model.SavingDetail;
import com.olinsports.system.olinsportssystem.model.SiteType;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/7/22.
 */
@Controller
@RequestMapping("siteType")
public class SiteTypeController {
    @Autowired
    private SiteTypeManager siteTypeManager;

    @RequestMapping("/selectAll")
    @ResponseBody
    public List<SiteType> selectAll(){
        return siteTypeManager.selectAll();
    }
}
